package com.rockcent.third;

import com.rockcent.common.BaseProp;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

/**
 * Created by oyhk on 16/5/3.
 * 自定义属性类
 */
@Component
public class Prop extends BaseProp{

    @Value("${domain.www}")
    public String domainWww;
    @Value("${domain.uploads}")
    public String domainUploads;
    @Value("${domain.b}")
    public String domainB;
    @Value("${domain.bb}")
    public String domainBB;
    @Value("${domain.assets}")
    public String domainAssets;
    @Value("${spring.mail.username}")
    public String springMailUsername;
    @Value("${market.api.host}")
    public String marketApiHost;
    @Value("${php.api.host}")
    public String phpApiHost;
    // 成为平台默认域名后缀
    @Value("${mall.settled.m}")
    public String mallSettledM;
    @Value("${mall.settled.c}")
    public String mallSettledC;
    @Value("${mall.domain}")
    public String mallDomain;

    @Value("${cookie.user.token}")
    public String userToken;

    @Value("${cookie.mall.info}")
    public String mallInfo;

    @Value("${cookie.domain}")
    public String cookieDomain;



    @Value("${mysql.druidDataSource.url}")
    public String jdbcUrl;
    @Value("${mysql.druidDataSource.username}")
    public String jdbcUsername;
    @Value("${mysql.druidDataSource.password}")
    public String jdbcPassword;

    @Value("${aliyun.oss.endpoint}")
    public String aliyunOssEndpoint;
    @Value("${aliyun.oss.access-key-id}")
    public String aliyunOssAccessKeyId;
    @Value("${aliyun.oss.access-key-secret}")
    public String aliyunOssaccessKeySecret;
    @Value("${aliyun.oss.bucket-name}")
    public String aliyunOssBucketName;
    @Value("${domain.uploads.http}")
    public String domainUploadsHttp;
}
